CC = gcc
CFLAGS = -Wall -pedantic
.SUFFIXES: .o .c
.c.o: ; $(CC) -c $(CFLAGS) $*.c
OBJ = util.o  laplace.o

ibm: $(OBJ)
	$(CC) $(CFLAGS) -o laplace $(OBJ) -lm

	make clean

clean:
	rm -f *.o *~

reset:
	make clean
	rm uvp -rf
	rm bdpo -rf
	rm data -rf
	mkdir uvp bdpo data
